//
//  STYAddMenuCell.m
//  CarOfHome2
//
//  Created by dlios on 15/9/30.
//  Copyright (c) 2015年 Frank. All rights reserved.
//

#import "STYAddMenuCell.h"

@implementation STYAddMenuCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.menuLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.menuLable];
        self.menuLable.textAlignment = NSTextAlignmentCenter;
        self.menuLable.font = [UIFont systemFontOfSize:12];
        self.menuLable.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.menuLable.frame = self.contentView.frame;
    self.contentView.layer.cornerRadius = 5;
    self.contentView.layer.masksToBounds = YES;
    
}


@end
